/*    */ package client;
/*    */ 
/*    */ import tools.Randomizer;
/*    */ import tools.data.output.MaplePacketLittleEndianWriter;
/*    */ 
/*    */ public final class PlayerRandomStream
/*    */ {
/*    */   private transient long seed1;
/*    */   
/*    */   public PlayerRandomStream() {
/* 11 */     CRand32__Seed(Randomizer.nextLong(), Randomizer.nextLong(), Randomizer.nextLong());
/*    */   }
/*    */   private transient long seed2; private transient long seed3;
/*    */   public void CRand32__Seed(long s1, long s2, long s3) {
/* 15 */     this.seed1 = s1 | 0x100000L;
/* 16 */     this.seed2 = s2 | 0x1000L;
/* 17 */     this.seed3 = s3 | 0x10L;
/*    */   }
/*    */   
/*    */   public long CRand32__Random() {
/* 21 */     long v8 = (this.seed1 & 0xFFFFFFFFFFFFFFFEL) << 12L ^ (this.seed1 & 0x7FFC0L ^ this.seed1 >> 13L) >> 6L;
/* 22 */     long v9 = 16L * (this.seed2 & 0xFFFFFFFFFFFFFFF8L) ^ (this.seed2 >> 2L ^ this.seed2 & 0x3F800000L) >> 23L;
/* 23 */     long v10 = (this.seed3 & 0xFFFFFFFFFFFFFFF0L) << 17L ^ (this.seed3 >> 3L ^ this.seed3 & 0x1FFFFF00L) >> 8L;
/* 24 */     return (v8 ^ v9 ^ v10) & 0xFFFFFFFFL;
/*    */   }
/*    */   
/*    */   public void connectData(MaplePacketLittleEndianWriter mplew) {
/* 28 */     long v5 = CRand32__Random();
/* 29 */     long s2 = CRand32__Random();
/* 30 */     long v6 = CRand32__Random();
/*    */     
/* 32 */     CRand32__Seed(v5, s2, v6);
/*    */     
/* 34 */     mplew.writeInt((int)v5);
/* 35 */     mplew.writeInt((int)s2);
/* 36 */     mplew.writeInt((int)v6);
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\client\PlayerRandomStream.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */